﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Supplier/SupplierMasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Supplier_Location_Default" %>

<asp:Content ID="Content2" ContentPlaceHolderID="pnlMain" Runat="Server">
    <asp:DropDownList ID="ddlSuppliers" runat="server" AutoPostBack="True" 
        onselectedindexchanged="ddlSuppliers_SelectedIndexChanged">
    </asp:DropDownList>
    <asp:HyperLink ID="hpyAddNew" runat="server">Add New Location</asp:HyperLink>
    <div class="divGrid">
        <asp:GridView ID="gvSupplierLocations" runat="server" 
            AutoGenerateColumns="False" EmptyDataText="No Record Found"
            DataKeyNames="SupplierLocationId" 
            onrowdatabound="gvSupplierLocations_RowDataBound" 
            onrowdeleted="gvSupplierLocations_RowDeleted" 
            onrowdeleting="gvSupplierLocations_RowDeleting" onrowcommand="gvSupplierLocations_RowCommand"
            >
            <Columns>
                <asp:BoundField DataField="LocationName" HeaderText="Location" />
                <asp:BoundField DataField="RegionName" HeaderText="Region" />
                <asp:BoundField DataField="City" HeaderText="City" />
                <asp:BoundField DataField="Phone" HeaderText="Phone" />
                <asp:BoundField DataField="Mobile" HeaderText="Mobile" />
                <asp:BoundField DataField="Active" HeaderText="Active" />
                <asp:HyperLinkField DataNavigateUrlFields="SupplierLocationId" DataNavigateUrlFormatString="addedit.aspx?id={0}"
                    Text="Edit" ItemStyle-Width="30" >
<ItemStyle Width="30px"></ItemStyle>
                </asp:HyperLinkField>
                <asp:CommandField ShowDeleteButton="True" ItemStyle-Width="50" >
<ItemStyle Width="50px"></ItemStyle>
                </asp:CommandField>
                 <asp:HyperLinkField DataNavigateUrlFields="SupplierLocationId" DataNavigateUrlFormatString="Timings.aspx?id={0}"
                    Text="Timings" ItemStyle-Width="30" >
                
<ItemStyle Width="30px"></ItemStyle>
                </asp:HyperLinkField>
                <asp:ButtonField CommandName="LocationVehicles" 
                     Text="Vehicles" />
                
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>

